package com.cooba.utils;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

/**
 * Created by Administrator on 2015/12/11.
 * 用户信息数据库
 */
public class MySqlOpenHelper extends SQLiteOpenHelper {
    private static final String DATABASENAME = "user.db";
    private static int version = 1;
    public MySqlOpenHelper(Context context) {
        super(context, DATABASENAME, null, version);
    }
    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        //    _id integer primary key autoincrement,
        db.execSQL("create table login_date(login_id varchar(36), name varchar(36),phone varchar(36),password varchar(36))");
        Log.e("db", "数据库创建了");
    }
}
